<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Drops - Drop.Duration</title>
    <link rel="stylesheet" type="text/css" href="https://omaralbeik.github.io/Drops/all.css" media="all" />
</head>
<body>
    <header>
        <a href="https://omaralbeik.github.io/Drops/">
            <strong>
                Drops
            </strong>
            <span>Documentation</span>
        </a>
    </header>

    <!--
    <form class="search">
        <input type="search" placeholder="Search" />
    </form>
    -->

    <nav>
        <div class="wrapper">
            <h2>On This Page</h2>
            <ol><li><a href="#relationships">Relationships</a><ul><li><a href="#relationships">Member Of</a></li><li><a href="#relationships">Conforms To</a></li></ul></li><li><a href="#initializers">Initializers</a><ul><li class="initializer"><a href="#drop.duration.init(floatliteral:)">init(float​Literal:​)</a></li></ul></li><li><a href="#enumeration cases">Enumeration Cases</a><ul><li class="case"><a href="#drop.duration.recommended">recommended</a></li><li class="case"><a href="#drop.duration.seconds">seconds</a></li></ul></li></ol>
        </div>
    </nav>

    <main>
        <article>
            <h1>
    <small>Enumeration</small>
    <code class="name">Drop.​Duration</code>
</h1>

<div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">enum</span> <span class="type">Duration</span>: <span class="type">Equatable</span>, <span class="type">ExpressibleByFloatLiteral</span>  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>An enum representing a drop duration on screen.</p>

</div>
<section id="relationships">
    <h2 hidden>Relationships</h2>
        <figure>
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.49.1 (20210923.0004)
 -->
<!-- Pages: 1 -->
<svg width="873pt" height="116pt"
 viewBox="0.00 0.00 872.94 116.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 112)">
<polygon fill="white" stroke="transparent" points="-4,4 -4,-112 868.94,-112 868.94,4 -4,4"/>
<!-- Drop.Duration -->
<g id="node1" class="node enumeration current">
<title>Drop.Duration</title>
<g id="a_node1"><a xlink:href="https://omaralbeik.github.io/Drops/Drop_Duration" xlink:title="Drop.Duration">
<path fill="none" stroke="black" stroke-width="3" d="M523.44,-108C523.44,-108 331.44,-108 331.44,-108 325.44,-108 319.44,-102 319.44,-96 319.44,-96 319.44,-84 319.44,-84 319.44,-78 325.44,-72 331.44,-72 331.44,-72 523.44,-72 523.44,-72 529.44,-72 535.44,-78 535.44,-84 535.44,-84 535.44,-96 535.44,-96 535.44,-102 529.44,-108 523.44,-108"/>
<text text-anchor="middle" x="427.44" y="-86.3" font-family="Menlo" font-size="14.00">Drop.Duration</text>
</a>
</g>
</g>
<!-- Equatable -->
<g id="node2" class="node unknown">
<title>Equatable</title>
<path fill="none" stroke="black" d="M298.44,-36C298.44,-36 106.44,-36 106.44,-36 100.44,-36 94.44,-30 94.44,-24 94.44,-24 94.44,-12 94.44,-12 94.44,-6 100.44,0 106.44,0 106.44,0 298.44,0 298.44,0 304.44,0 310.44,-6 310.44,-12 310.44,-12 310.44,-24 310.44,-24 310.44,-30 304.44,-36 298.44,-36"/>
<text text-anchor="middle" x="202.44" y="-14.3" font-family="Menlo" font-size="14.00">Equatable</text>
</g>
<!-- Drop.Duration&#45;&gt;Equatable -->
<g id="edge1" class="edge conformsTo">
<title>Drop.Duration&#45;&gt;Equatable</title>
<path fill="none" stroke="black" d="M372.69,-71.97C340.84,-62.06 300.52,-49.51 267.12,-39.12"/>
<polygon fill="black" stroke="black" points="268.03,-35.74 257.44,-36.11 265.95,-42.42 268.03,-35.74"/>
</g>
<!-- ExpressibleByFloatLiteral -->
<g id="node3" class="node unknown">
<title>ExpressibleByFloatLiteral</title>
<path fill="none" stroke="black" d="M753.94,-36C753.94,-36 550.94,-36 550.94,-36 544.94,-36 538.94,-30 538.94,-24 538.94,-24 538.94,-12 538.94,-12 538.94,-6 544.94,0 550.94,0 550.94,0 753.94,0 753.94,0 759.94,0 765.94,-6 765.94,-12 765.94,-12 765.94,-24 765.94,-24 765.94,-30 759.94,-36 753.94,-36"/>
<text text-anchor="middle" x="652.44" y="-14.3" font-family="Menlo" font-size="14.00">ExpressibleByFloatLiteral</text>
</g>
<!-- Drop.Duration&#45;&gt;ExpressibleByFloatLiteral -->
<g id="edge2" class="edge conformsTo">
<title>Drop.Duration&#45;&gt;ExpressibleByFloatLiteral</title>
<path fill="none" stroke="black" d="M482.19,-71.97C514.04,-62.06 554.36,-49.51 587.77,-39.12"/>
<polygon fill="black" stroke="black" points="588.93,-42.42 597.44,-36.11 586.85,-35.74 588.93,-42.42"/>
</g>
</g>
</svg>


    <figcaption hidden>Inheritance graph for Drop.Duration.</figcaption>
</figure>
        <h3>Member Of</h3>
<dl>
    <dt class="structure"><code><a href="https://omaralbeik.github.io/Drops/Drop">Drop</a></code></dt>
<dd><p>An object representing a drop.</p>
</dd>
</dl>
<h3>Conforms To</h3>
<dl>
    <dt class="unknown"><code>Equatable</code></dt>
<dt class="unknown"><code>ExpressibleByFloatLiteral</code></dt>
</dl>
</section>
    <section id="initializers">
        <h2>Initializers</h2>

        <div role="article" class="initializer" id="drop.duration.init(floatliteral:)">
    <h3>
        <code><a href="#drop.duration.init(floatliteral:)">init(float​Literal:​)</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">init</span>(<span class="variable">floatLiteral</span> <span class="variable">value</span>: <span class="type">TimeInterval</span>)  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Create a new duration object.</p>

</div>
<h4>Parameters</h4>

<table class="parameters">
  <thead hidden>
  <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
  </tr>
  </thead>
  <tbody>
    <tr>
    <th>value</th>
    <td><code class="type">Time​Interval</code></td>
    <td><p>Duration in seconds</p>
</td>
</tr>
  </tbody>
</table>
</div>
    </section>
    <section id="enumeration cases">
        <h2>Enumeration Cases</h2>

        <div role="article" class="case" id="drop.duration.recommended">
    <h3>
        <code><a href="#drop.duration.recommended">recommended</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">case</span> <span class="variable">recommended</span></body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Hides the drop after 2.0 seconds.</p>

</div>
</div>
<div role="article" class="case" id="drop.duration.seconds">
    <h3>
        <code><a href="#drop.duration.seconds">seconds</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">case</span> <span class="variable">seconds</span>(<span class="type">TimeInterval</span>) </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Hides the drop after the specified number of seconds.</p>

</div>
</div>
    </section>



        </article>
    </main>

    <footer>
        <p>
    Generated on <time datetime="2021-10-13T22:02:18+0200">October 13, 2021</time> using <a href="https://github.com/SwiftDocOrg/swift-doc">swift-doc</a> <span class="version">1.0.0-rc.1</span>.
</p>
    </footer>
</body>
</html>
